package com.invoicing.controller;
import com.invoicing.MainController;
import com.invoicing.Service.UserService;
import com.invoicing.view.*;
import de.felixroske.jfxsupport.FXMLController;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import org.springframework.beans.factory.annotation.Autowired;

import java.net.URL;
import java.util.ResourceBundle;

@FXMLController
public class MenuController implements Initializable{

    @Autowired
    private UserService userService;

    @FXML
    private void showAlert(){
        MainController.showView(AlertView.class);
    }

    @FXML
    private void showVend(){MainController.showView(InputView.class);}
    @FXML
    private void showDiscount(){MainController.showView(DiscountView.class);}
    @FXML
    private  void showSell(){MainController.showView(SellView.class);}
    @FXML
    private  void showStock(){
        MainController.showView(StockView.class);
    }
    @FXML
    private void showMessage(){MainController.showView(MessageView.class);}

    @FXML
    private void showProfit(){MainController.showView(ProfitView.class);}

    public void initialize(URL location, ResourceBundle resources) {

    }
    @FXML
    private void out(){
        MainController.showView(LoginView.class);
    }
}
